package com.qys.livesMall.app.user.model.vo.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户盈亏Vo
 * @author yxh
 */
@Data
public class ProfitAndLossStatisticsVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户UID")
    private String userRandomId;

    @Schema(description = "充值金额")
    private BigDecimal rechargeAmount;

    @Schema(description = "提现金额")
    private BigDecimal withdrawalAmount;

    @Schema(description = "彩金赠送金额")
    private BigDecimal totalGift;

    @Schema(description = "彩金赠送代币")
    private BigDecimal goldCoin = BigDecimal.ZERO;

    @Schema(description = "活动赠送")
    private BigDecimal amountOfActivity = BigDecimal.ZERO;

    @Schema(description = "今日充提差")
    private BigDecimal chargeTheDifferenceToday;

    @Schema(description = "总充提差")
    private BigDecimal totalChargeLift;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "注册时间")
    private LocalDateTime createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
    
}
